#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.domain.contract.param;

import ${groupId}.core.contract.BaseRepository;
import ${groupId}.core.contract.Query;
import ${package}.domain.demo.repository.DemoRepository;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * Demo仓库，主要是给人去学习用(Demo)领域参数类
 * <p>
 * 主要做查询功能，不做增删改的操作
 *
 * @author zhouhengzhe
 * @since 2023-12-01 17:25:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class DemoParam extends Query {

    @Schema(description = "ID")
    private String id;

    @Schema(description = "应用ID")
    private String tenantId;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "名字")
    private String name;


    @Schema(description = "名字（模糊查询）")
    private String nameLike;

    @Override
    public DemoRepository repository() {
        return BaseRepository.of(DemoParam.class);
    }
}
